<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>阅读3.0订阅源编辑器_V4.0</title>
    <link rel="icon" href="../favicon.ico">
    <link rel="stylesheet" type="text/css" href="index.css"/>
</head>

<body>
<div class="editor">
    <div class="setbox">
        <div>
            <a href="../index.html">←主页</a>
            <b>订阅源</b>
        </div>
        <div class="rules">
            <div><b>基本</b></div>
            <div>
                <div>源域名　:</div>
                <textarea rows="1" id="sourceUrl" class="base" title="sourceUrl"
                          placeholder="<必填>通常填写网站主页,例: https://www.qidian.com"></textarea>
            </div>
            <div>
                <div>源名称　:</div>
                <textarea rows="1" id="sourceName" class="base" title="sourceName"
                          placeholder="&lt;必填&gt;源名称"></textarea>
            </div>
            <div>
                <div>图标　　:</div>
                <textarea rows="1" id="sourceIcon" class="base" title="sourceIcon"
                          placeholder="&lt;选填&gt;图标"></textarea>
            </div>
            <div>
                <div>源分组　:</div>
                <textarea rows="1" id="sourceGroup" class="base" title="sourceGroup"
                          placeholder="&lt;选填&gt;描述源的特征信息"></textarea>
            </div>
            <div>
                <div>源注释　:</div>
                <textarea rows="1" id="sourceComment" class="base" title="sourceComment"
                          placeholder="&lt;选填&gt;描述源作者和状态"></textarea>
            </div>
            <div>
                <div>登录地址:</div>
                <textarea rows="1" id="loginUrl" class="base" title="loginUrl"
                          placeholder="&lt;选填&gt;填写网站登录网址,仅在需要登录的源有用"></textarea>
            </div>
            <div>
                <div>登录界面:</div>
                <textarea rows="3" id="loginUi" class="base" title="loginUi"
                          placeholder="&lt;选填&gt;自定义登录界面"></textarea>
            </div>
            <div>
                <div>登录检测:</div>
                <textarea rows="3" id="loginCheckJs" class="base" title="loginCheckJs"
                          placeholder="&lt;选填&gt;登录检测js"></textarea>
            </div>
            <div>
                <div>并发率　:</div>
                <textarea rows="1" id="concurrentRate" class="base" title="concurrentRate"
                          placeholder="&lt;选填&gt;并发率"></textarea>
            </div>
            <div>
                <div>请求头　:</div>
                <textarea rows="3" id="header" class="base" title="header"
                          placeholder="&lt;选填&gt;客户端标识"></textarea>
            </div>
            <div>
                <div>分类地址:</div>
                <textarea rows="3" id="sortUrl" class="base" title="sortUrl"
                          placeholder="&lt;选填&gt;例：&#10;名称1::网址(Url)1&#10;名称2::网址(Url)2&#10;..."></textarea>
            </div>
            <p></p>
            <div><b>列表规则</b></div>
            <div>
                <div>列表样式:</div>
                <textarea rows="1" id="articleStyle" class="base" title="articleStyle"
                          placeholder="列表样式:0,1,2"></textarea>
            </div>
            <div>
                <div>列表规则:</div>
                <textarea rows="1" id="ruleArticles" class="base" title="ruleArticles"
                          placeholder="列表规则 (规则结果为List&lt;Element&gt;)"></textarea>
            </div>
            <div>
                <div>标题规则:</div>
                <textarea rows="1" id="ruleTitle" class="base" title="ruleTitle"
                          placeholder="选择节点书名 (规则结果为String)"></textarea>
            </div>
            <div>
                <div>时间规则:</div>
                <textarea rows="1" id="rulePubDate" class="base" title="rulePubDate"
                          placeholder="发表时间 (规则结果为String)"></textarea>
            </div>
            <div>
                <div>翻页规则:</div>
                <textarea rows="1" id="ruleNextPage" class="base" title="ruleNextPage"
                          placeholder="下一页链接 (规则结果为List&lt;String&gt;或String)"></textarea>
            </div>
            <p></p>
            <div><b>WebView规则</b></div>
            <div>
                <div>加载地址:</div>
                <textarea rows="1" id="loadWithBaseUrl" class="base" title="loadWithBaseUrl"
                          placeholder="是否加载url (启用: true  关闭: false (可选,默认true))"></textarea>
            </div>
            <div>
                <div>启用JS　:</div>
                <textarea rows="1" id="enableJs" class="base" title="enableJs"
                          placeholder="是否启用Js (启用: true  关闭: false (可选,默认true))"></textarea>
            </div>
            <div>
                <div>描述规则:</div>
                <textarea rows="1" id="ruleDescription" class="base" title="ruleDescription"
                          placeholder="rss内容 (规则结果为String)"></textarea>
            </div>
            <div>
                <div>图片地址:</div>
                <textarea rows="1" id="ruleImage" class="base" title="ruleImage"
                          placeholder="图片rul规则 (规则结果为url)"></textarea>
            </div>
            <div>
                <div>原文链接:</div>
                <textarea rows="1" id="ruleLink" class="base" title="ruleLink"
                          placeholder="原文链接规则 (规则结果为url)"></textarea>
            </div>
            <div>
                <div>内容规则:</div>
                <textarea rows="1" id="ruleContent" class="base" title="ruleContent"
                          placeholder="内容规则 (规则结果为String)"></textarea>
            </div>
            <div>
                <div>内容样式:</div>
                <textarea rows="1" id="style" class="base" title="style"
                          placeholder="内容样式 (css样式)"></textarea>
            </div>
            <p></p>
            <div><b>其它规则</b></div>
            <div>
                <div>启用　　:</div>
                <textarea rows="1" id="enabled" class="base" title="enabled"
                          placeholder="启用: true  关闭: false (可选,默认true)"></textarea>
            </div>
            <div>
                <div>排序编号:</div>
                <textarea rows="1" id="customOrder" class="base" title="customOrder"
                          placeholder="整数: 0~N (可选,默认0) | 数字越小越靠前"></textarea>
            </div>
            <div>
                <div>单URL　:</div>
                <textarea rows="1" id="singleUrl" class="base" title="singleUrl"
                          placeholder="启用: true  关闭: false (可选,false)"></textarea>
            </div>
        </div>
    </div>
    <div class="menu">
        <svg class="button">
            <text x="50%" y="55%">⇈推送源</text>
            <rect id="push"></rect>
        </svg>
        <svg class="button">
            <text x="50%" y="55%">⇊拉取源</text>
            <rect id="pull"></rect>
        </svg>
        <svg class="button">
            <text x="50%" y="55%">⋘编辑源</text>
            <rect id="editor"></rect>
        </svg>
        <svg class="button">
            <text x="50%" y="55%">⋙生成源</text>
            <rect id="conver"></rect>
        </svg>
        <svg class="button">
            <text x="50%" y="55%">✗清空表单</text>
            <rect id="initial"></rect>
        </svg>
        <svg class="button">
            <text x="50%" y="55%">↶撤销操作</text>
            <rect id="undo"></rect>
        </svg>
        <svg class="button">
            <text x="50%" y="55%">↷重做操作</text>
            <rect id="redo"></rect>
        </svg>
        <svg class="button">
            <text x="50%" y="55%">⇏调试源</text>
            <rect id="debug"></rect>
        </svg>
        <svg class="button">
            <text x="50%" y="55%">✓保存源</text>
            <rect id="accept"></rect>
        </svg>
    </div>
    <div class="outbox">
        <div class="tabbox">
            <div class="tabtitle">
                <div name="编辑源" class="tab1 this">编辑源</div>
                <div name="调试源" class="tab2">调试源</div>
                <div name="源列表" class="tab3">源列表</div>
                <div name="帮助信息" class="tab4">帮助信息</div>
            </div>
            <div class="tabbody">
                <div class="tab1 this">
                        <textarea class="context" id="RuleJsonString"
                                  placeholder="这里输出序列化的JSON数据,可直接导入'阅读'APP"></textarea>
                </div>
                <div class="tab2">
                    <textarea class="context" id="DebugConsole" placeholder="这里用于输出调试信息"></textarea>
                </div>
                <div class="tab3">
                    <input type="text" class="inputbox" id="Filter"
                           placeholder="输入筛选关键词（源名称、源URL或源分组）后按回车筛选源">
                    <div class="titlebar">
                        <button id="Import">导入源文件</button>
                        <button id="Export">导出源文件</button>
                        <button id="Delete">删除选中源</button>
                        <button id="ClrAll">清空列表</button>
                    </div>
                    <div class="context" id="RuleList"></div>
                </div>
                <div class="tab4">
                    <div class="context link">
                        <a target="_blank" href="https://alanskycn.gitee.io/teachme">源制作教程</a>
                        <a target="_blank"
                           href="https://zhuanlan.zhihu.com/p/29436838">Xpath基础教程</a>
                        <a target="_blank"
                           href="https://zhuanlan.zhihu.com/p/32187820">Xpath高级教程</a>
                        <a target="_blank" href="https://www.w3cschool.cn/regex_rmjc">正则表达式教程</a>
                        <a target="_blank" href="https://regexr.com">正则表达式在线验证工具</a>
                        <div>^$()[]{}.?+*| 这些是Java正则特殊符号,匹配需转义
                            <br>(?s) 前缀表示跨行解析
                            <br>(?m) 前缀表示逐行匹配
                            <br>(?i) 前缀表示忽略大小写
                        </div>
                        <a target="_blank" href="https://www.beta.browxy.com">代码在线运行工具</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/assets/js/md5.js"></script>
<script type="text/javascript" src="index.js"></script>
</body>

</html>